#include <iostream>

using namespace std;

int main() {
    

    int a = 10;
    int & aR = a;
    cout << "var a value is" << endl;
    cout << a << endl;
    cout << "var aR value is " << endl;
    cout << aR << endl;
    cout << "var &aR value is " << endl;
    cout << &aR << endl;
    cout << "var &a value is " << endl;
    cout << &a << endl;
    cout << "var *&a value is " << endl;
    cout << *&a << endl;

    aR = 20;
    cout << "update aR value=20, var a value is" << endl;
    cout << a << endl;
    cout << "var aR value is " << endl;
    cout << aR << endl;
    cout << "var &aR value is " << endl;
    cout << &aR << endl;
    

    aR = 10;
    a = 20;
    cout << "update a value=20, var a value is" << endl;
    cout << a << endl;
    cout << "var aR value is " << endl;
    cout << aR << endl;
    cout << "var &aR value is " << endl;
    cout << &aR << endl;


    return 0;
}